package com.study.d012Components.listview;

import javafx.beans.property.SimpleBooleanProperty;

public class Student {

		private int age;
		private String name;
		private SimpleBooleanProperty isCheck=new SimpleBooleanProperty();   //是否被选中


		public Student(String name,int age){
			this.name = name;
			this.age = age;
		}

		public int getAge() {
			return age;
		}

		public void setAge(int age) {
			this.age = age;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public SimpleBooleanProperty getIsCheckProperty() {
			return isCheck;
		}

		public void setIsCheck(boolean isCheck) {
			this.isCheck.set(isCheck);
		}

		public boolean isCheck(){
			return isCheck.get();
		}

}
